package com.wy.model.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * @author wanghuan
 *
 */
@ApiModel(value = "系统用户对象",description = "系统用户对象")
public class UserEntity {

	@ApiModelProperty(value="自增id",name="id",example="1",dataType = "Integer")
	private int id;
	@ApiModelProperty(value="登录用户名",name="loginName",required=true,dataType = "String")
	private String loginName;
	@ApiModelProperty(value="真实姓名",name="name",required=true,dataType = "String")
	private String name;
	@ApiModelProperty(value="登录密码",name="password",required=true,dataType = "String")
	private String password;
	@ApiModelProperty(value="邮箱",name="email",required=true,dataType = "String")
	private String email;
	@ApiModelProperty(value="手机号码",name="mobile",required=true,dataType = "String")
	private String mobile;
	@ApiModelProperty(value="用户状态：0禁用，1启用",name="status",required=true,dataType = "String")
	private String status;
	@ApiModelProperty(value="0未认证，1已认证",hidden=true)
	private String authStatus;
	@ApiModelProperty(value="注册来源:1APP,2WEB",name="source",required=true,dataType = "String")
	private String source;
	@ApiModelProperty(value="创建时间",name="createTime",required=true,dataType = "date")
	private Date createTime;
	@ApiModelProperty(value="认证时间",hidden=true)
	private Date authTime;
	@ApiModelProperty(value="认证操作人",hidden=true)
	private String authOperator;
	@ApiModelProperty(value="用户有权访问数据的小区，用于数据授权",name="rid",required=true,dataType = "String")
	private String rid;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAuthStatus() {
		return authStatus;
	}

	public void setAuthStatus(String authStatus) {
		this.authStatus = authStatus;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getAuthTime() {
		return authTime;
	}

	public void setAuthTime(Date authTime) {
		this.authTime = authTime;
	}

	public String getAuthOperator() {
		return authOperator;
	}

	public void setAuthOperator(String authOperator) {
		this.authOperator = authOperator;
	}

	public String getRid() {
		return rid;
	}

	public void setRid(String rid) {
		this.rid = rid;
	}

	@Override
	public String toString() {
		return "UserEntity [id=" + id + ", loginName=" + loginName + ", name=" + name + ", password=" + password
				+ ", email=" + email + "]";
	}

}
